package com.itheima.zuoye.zuoye1;

import java.util.HashSet;

public class Test {
    public static void main(String[] args) {
        HashSet<Student> hs = new HashSet<>();
        hs.add(new Student("赵丽颖", 18));
        hs.add(new Student("范冰冰", 20));
        hs.add(new Student("杨幂", 19));
        hs.add(new Student("杨幂", 19));

        for (Student h : hs) {
            System.out.println("我的舍友是"+h.getName() + "：" + h.getAge());
        }
    }
}
